package com.dhsc.controller.csgl;

import com.dhsc.domain.ywzx.csgl.YwkmglVo;
import com.dhsc.domain.yypt.LayuiTableVo;
import com.dhsc.domain.yypt.ResponseObject;
import com.dhsc.service.csgl.IYwkmglService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ClassName: YwkmglController
 * @Description: 业务请求管理
 * @date: 2023/9/11 14:30
 * @author: gx
 */
@Controller
@RequestMapping("/csgl")
public class YwkmglController {

    @Autowired
    private IYwkmglService ywkmglService;

    /**
     * @Title: queryYwkmgl
     * @Description: 查询业务科目管理
     * @Param: jzclthlVo
     * @return: LayuiTableVo
     * @Author: gx
     * @Date: 2023/9/11 13:13
     */
    @ResponseBody
    @RequestMapping(value="/queryYwkmgl")
    public LayuiTableVo queryYwkmgl(YwkmglVo ywkmglVo){
        return ywkmglService.queryYwkmgl(ywkmglVo);
    }

    /**
     * @Title: saveYwkmgl
     * @Description: 保存业务科目管理
     * @Param: ywkmglVo
     * @return: ResponseObject
     * @Author: gx
     * @Date: 2023/9/11 15:08
     */
    @ResponseBody
    @RequestMapping(value="/saveYwkmgl")
    public ResponseObject saveYwkmgl(YwkmglVo ywkmglVo){
        return ywkmglService.saveYwkmgl(ywkmglVo);
    }

}
